package demo1;

public class Test {
    public static void main(String[] args) {
        MyArray myArray=new MyArray();
        myArray.setArray(0,"abcd");
        myArray.setArray(1,10);
        String ret=(String) myArray.getArray(0);//要转型
        int num=(int) myArray.getArray(1);//要转型
        System.out.println(ret);
        System.out.println(num);

    }
}
